#include "Object.hpp"

using namespace klasPhysics;


void Object::SetLocation(const Vector3D &loc)
{
	m_State.location = loc;
}

void Object::AddForce(const Vector3D &force)
{
	m_Forces.directional.push_back(force);
}

void Object::SetMass(Real mass)
{
	m_State.mass = mass;
	m_State.inverseMass = 1.0 / mass;
}

void Object::FastCollisionTest(Object *other)
{
	//if(m_FastCollisionBox.Intersects(other->m_FastCollisionBox)
	//	m_CollidingWith.push_back(other);
}

void Object::Integrate(Real totalTime, Real timeStep)
{
	Integrator::Integrate(m_State, totalTime, timeStep, &m_Forces);
}